#define _CRT_SECURE_NO_WARNINGS 1
#include"HDLList20250307.h"
void test()
{
    HDLListNode* plist = HDLListInit();
    HDLListPushBack(plist, 1);
    HDLListPushBack(plist, 2);
    HDLListPushBack(plist, 3);
    HDLListPushBack(plist, 4);
    HDLListPrint(plist);
  /*  HDLListPopBack(plist);*/
    HDLListPopFront(plist);
    HDLListPrint(plist);
    //HDLListPushFront(plist, 5);
    //HDLListPushFront(plist, 6);
    //HDLListPrint(plist);

    //HDLListPrint(plist);
    //HDLListNode* ret = HDLListFind(plist, 2);
    //ret->data *=2;
    //HDLListPrint(plist);
    //HDLListNode* pos = HDLListFind(plist, 2);
    //if (pos)
    //{
    //    HDLListErase(pos);
    //    pos = NULL;
    //}
    //HDLListPrint(plist);
    //HDLListNode* pos = HDLListFind(plist, 2);
    //if (pos)
    //{
    //    HDLListInsert(pos,7);
    //    pos = NULL;
    //}
    //HDLListPrint(plist);
}
int main()
{
    test();
    return 0;
}